package com.gopher.gopherbeasts;

import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

// an entity that has at least one animation (probably add a list of animations)
// we might not end up needing this i dont know
public abstract class AnimatedEntity extends Entity{
	
	float stateTime;
	Animation currentAnimation;
	
	public AnimatedEntity(float x, float y, float w, float h, TextureRegion texture) {
		super(x, y, w, h, texture);
		// TODO Auto-generated constructor stub
	}

	@Override
	public abstract void update();
	
	@Override
	public void render() {
		currentFrame = currentAnimation.getKeyFrame(stateTime, true);
	}


	@Override
	public void collidedWith(Entity other) {
		// TODO Auto-generated method stub
		
	}
	
}
